package com.esiag.isidis.fi.pdsTeam.receive.beans;

import java.io.Serializable;
import java.util.ArrayList;

import org.apache.activemq.ActiveMQConnection;

import com.esiag.isidis.fi.pdsTeam.annotation.Queue;
import com.esiag.isidis.fi.pdsTeam.annotation.Url;


@Queue(value="QUEUE-PDSTeam")
@Url(value=ActiveMQConnection.DEFAULT_BROKER_URL)
public class Action implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 648528252502043860L;
	int id;
	String description;
	
	@Override
	public String toString() {
		return "Action [id=" + id + ", description=" + description + "]";
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	private Order order;
	private ArrayList<Action> actionsList;
	
	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Action() {
		super();
		// TODO Auto-generated constructor stub
	}

	public ArrayList<Action> getActionsList() {
		return actionsList;
	}

	public void setActionsList(ArrayList<Action> actionsList) {
		this.actionsList = actionsList;
	}

	public Action(ArrayList<Action> actionsList) {
		this.actionsList = actionsList;
	}
	
	
}
